Skip to content

Introduce Prompt customization into config #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 27, 2023

Conversation

andrewhong5297
Copy link
Contributor

This PR adds filePrompt, folderPrompt, chatPrompt, contentType, and targetAudience into the config to make prompts more flexible.

Ideally, in the future, you could choose some preset for code, developer docs, or other kinds of repositories.

I've checked that the whole doc init and doc index process still works, and moved the original prompts into the default config.

I'm not super used to typescript so I may have made some antipatterns along the way 😅

Super excited to see this tool grow further.

@samheutmaker
Copy link
Contributor

samheutmaker commented Mar 26, 2023

They thanks so much for taking this on! Every looks good at first glance. I'll take a deeper look in the morning and try to get it merged tomorrow.

@andrewhong5297
Copy link
Contributor Author

They thanks so much for taking this on! Every looks good at first glance. I'll take a deeper look in the morning and try to get it merged tomorrow.

My pleasure! Thanks for open sourcing this :)

@andrewhong5297
Copy link
Contributor Author

I'm adding a filter for not including /blob/master/ in links if the user doesn't want to, since I want to direct users to the hosted docs site instead of the github! give me a sec

@andrewhong5297
Copy link
Contributor Author

kk done

@samheutmaker samheutmaker merged commit 338247c into context-labs:master Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants